package pl.maciejziarko.mshare.dto;

import org.hibernate.validator.constraints.Email;

import java.io.Serializable;

/**
 * @author Maciej Ziarko
 */
public class RegisterDTO extends LoginDTO implements Serializable {

    @Email(message = "Invalid e-mail address!")
    private String email;
    private String firstName;
    private String lastName;

    public RegisterDTO() {
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    @Override
    public String toString() {
        return "RegisterDTO{" +
                "email='" + email + '\'' +
                ", firstName='" + firstName + '\'' +
                ", lastName='" + lastName + '\'' +
                "} " + super.toString();
    }
}
